Skip to content

Conversation

aDotInTheVoid
Copy link
Member

@aDotInTheVoid aDotInTheVoid commented May 28, 2025

Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! r=me with or without addressing the comments

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #2298 (which added this page as a stub, and linked to it).

@jieyouxu jieyouxu added A-test-suite Area: rust-lang/rust test suites T-rustdoc Relevant to rustdoc team labels May 29, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 5, 2025
…illaumeGomez

jsondocck: Refactor directive handling

Best reviewed commit by commit.

1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (rust-lang/rustc-dev-guide#2422 (comment)), but also makes the code nicer in it's own right
2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this.

r? `@GuillaumeGomez`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 5, 2025
…illaumeGomez

jsondocck: Refactor directive handling

Best reviewed commit by commit.

1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (rust-lang/rustc-dev-guide#2422 (comment)), but also makes the code nicer in it's own right
2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this.

r? ``@GuillaumeGomez``
rust-timer added a commit to rust-lang/rust that referenced this pull request Jun 5, 2025
Rollup merge of #141709 - aDotInTheVoid:split-for-docs, r=GuillaumeGomez

jsondocck: Refactor directive handling

Best reviewed commit by commit.

1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (rust-lang/rustc-dev-guide#2422 (comment)), but also makes the code nicer in it's own right
2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this.

r? ``@GuillaumeGomez``
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Jun 6, 2025
jsondocck: Refactor directive handling

Best reviewed commit by commit.

1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (rust-lang/rustc-dev-guide#2422 (comment)), but also makes the code nicer in it's own right
2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this.

r? ``@GuillaumeGomez``
github-actions bot pushed a commit that referenced this pull request Jun 9, 2025
jsondocck: Refactor directive handling

Best reviewed commit by commit.

1. Moves directive handling into its own file. This makes it easier to link to in the dev-guide (#2422 (comment)), but also makes the code nicer in it's own right
2. Renames command to directive. This is what compiletest uses, and it's nice to not have 2 words for this.

r? ``@GuillaumeGomez``
@jyn514
Copy link
Member

jyn514 commented Aug 28, 2025

@aDotInTheVoid it's been a bit—how do you feel about merging as-is and making improvements in follow-up PRs?

@aDotInTheVoid aDotInTheVoid marked this pull request as ready for review August 30, 2025 22:50
@rustbot
Copy link
Collaborator

rustbot commented Aug 30, 2025

Thanks for the PR. If you have write access, feel free to merge this PR if it does not need reviews. You can request a review using r? rustc-dev-guide or r? <username>.

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Aug 30, 2025
@aDotInTheVoid
Copy link
Member Author

Filled out a bit more stuff, I think it's mergable now, but still don't love it. It seems to focused on how the test-infra works, and not how to write tests.

CC @obi1kenobi @fmease @jdonszelmann, would appreciate feedback on if this is clear/what's missing.

@aDotInTheVoid
Copy link
Member Author

I'm gonna merge this, it's Good Enough (tm), and improvements can be made in follow-ups.

@aDotInTheVoid aDotInTheVoid merged commit 93e3be1 into rust-lang:master Sep 5, 2025
1 check passed
@rustbot rustbot removed the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Sep 5, 2025
@aDotInTheVoid aDotInTheVoid deleted the tenthousandyears branch September 5, 2025 20:27
@fmease
Copy link
Member

fmease commented Sep 5, 2025

Sorry, didn't get to review it, I'll check out the chapter later

@obi1kenobi
Copy link
Member

Retroactive LGTM from me too.

If you're considering making further improvements from here, I think the biggest improvement I can think of is to document all the things that are known to not currently work, linking to their respective issues. Things like "query selectors that go more than one level deep" etc. that are unintuitive and would burn a new contributor — precisely the person who would find this document most useful already :)

@aDotInTheVoid
Copy link
Member Author

Sorry, didn't get to review it, I'll check out the chapter later

Thanks, much apprecieated.

Things like "query selectors that go more than one level deep" etc. that are unintuitive and would burn a new contributor

This was fixed in rust-lang/rust#138763! (And part of the reason this happened now, because I don't need to document all the workarounds to the broken old parser.

Are there any other footguns you're aware of? I think we've got all of them, but could easily be wrong.

@obi1kenobi
Copy link
Member

Ah, wonderful news! The issues I was thinking of might have been fixed then, so I'll just keep my eyes open and update that doc if I come across anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-test-suite Area: rust-lang/rust test suites T-rustdoc Relevant to rustdoc team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document JsonDocCk and checkmissingitems.py
6 participants